const express = require('express');
const app = express();
const bodyParser = require('body-parser');
app.use(bodyParser.urlencoded({ extended: false }));
app.listen(8080);
app.use((err, req, res, next) => {
    console.log(err);
    res.send({ code: 500, msg: '服务器端错误' })
})